package com.xbs.service.enterprise;

import java.util.List;

import com.xbs.dao.enterprise.EpOptionOrderDao;
import com.xbs.entity.EpOptionEitity;
import com.xbs.entity.EpOptionOrderQueryEntity;
import com.xbs.utils.PageUtilEntity;

public class EpOptionOrderService {
	EpOptionOrderDao dao=new EpOptionOrderDao();
	/**
	 * 获取今天的企业订单
	 */
	public List<EpOptionEitity> getTodayOptionOrder(){
		return dao.getTodayOptionOrder();
	}
	/**
	 * 根据条件查询企业订单
	 */
	public PageUtilEntity<EpOptionEitity> getEpOrderOption(EpOptionOrderQueryEntity query,int curr,int size){
		PageUtilEntity<EpOptionEitity> page=new PageUtilEntity<>();
		page.setIst(dao.getEpOrderOption(query, curr, size));
		page.setCurrpage(curr);
		page.setPageSize(size);
		page.setSumRecord(dao.getSumOrderQuery(query));
		return page;
	}
}
